﻿<%@ Page Title="" Language="C#" MasterPageFile="~/template/Admin.Master" AutoEventWireup="true" CodeBehind="ArticleUpdate.aspx.cs" Inherits="EmptyWallGallery.FrontEnd.inside.Editor.Articles.ArticleUpdate" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .form-wrap, .form-field { width: 100%; }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ctphTitle" runat="server">
    <h1>Sửa bài viết</h1>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctphMain" runat="server">
    <div class="left">
        <div class="form-wrap">
            <div style="display: none;margin-bottom: 15px;" class="alert alert-success" runat="server" id="lblError"></div>
            <div class="form-field" style="width: 100%;">
                <label>Tiêu đề</label>
                <asp:TextBox ID="txtTitle" Text="" Style="width: 99%; font-size: 1.7em;" CssClass="TitleBlog" runat="server"></asp:TextBox>

            </div>
            <div class="form-field" style="width: 100%;">
                <label>Mô tả ngắn</label>
                <asp:TextBox ID="txtDesc" ClientIDMode="Static" runat="server" TextMode="MultiLine" Width="99%"></asp:TextBox>
                <div id="countChar" style="text-align: right; height: 15px;"></div>
                <asp:HiddenField ID="txtTitleNone" runat="server" />
                <asp:HiddenField ID="txtArticlePath" runat="server" />
                <asp:HiddenField ID="txtImagePath" runat="server" />
                <asp:HiddenField ID="txtCreateDate" runat="server" />
            </div>
            <div class="form-field">
                <label>Nội dung</label>
                <FCKeditorV2:FCKeditor ID="txtBody" runat="server" ToolbarSet="MyCustoms"
                    BasePath="/Library/Editor/fckeditor/" SkinPath="/Library/Editor/fckeditor/editor/skins/silver/" Height="500px">
                </FCKeditorV2:FCKeditor>
            </div>
        </div>
    </div>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ctphRight" runat="server">
    <div class="right">
        <div class="box-right">
            <h3>Xuất bản</h3>
            <div class="box-content">
                <p class="publishInfo"><img src="<%= ResolveUrl("~/Images/Calendar-scheduleHS.png") %>" width="12" height="12" alt="Publish Date" />&nbsp;<span id="PublishInfo">Publish <b>immediately</b></span> <a href="javascript:void(0);" title="Edit" id="lnkEditDatePublish" onclick="javascript:Util.EditArticlePublish('<%=ArticlePublishContent.ClientID %>');">Sửa</a>
                    <span id="ArticlePublishContent" runat="server" style="display:none;"></span>                        
                </p>
                <div class="major-publishing-actions">
                    <input type="hidden" id="txtTestUrl" name="txtTestUrl" />
                </div>                
            </div>
        </div>        
        <div class="box-right">
            <h3>Upload ảnh đại diện</h3>
            <div class="box-content">
                <p>
                    <asp:Image ID="imgPreView" runat="server" />
                </p>
                <p>
                    <asp:FileUpload ID="fileUpload" runat="server" />
                </p>
            </div>
        </div>
        <div class="box-right">
            <h3>Danh mục</h3>
            <div class="box-content">
                <div id="catdetail" runat="server" style="padding-top: 5px; padding-bottom: 5px;"></div>
            </div>
        </div>
        <asp:Button ID="BtnUpdate" CssClass="btn btn-primary" runat="server" Text="Cập nhật" OnClick="BtnUpdateClick" />
    </div>
</asp:Content>
